package com.leoman.spinningmachine.tab1;

import android.widget.TextView;

import com.leoman.helper.adapter.BaseRecyclerAdapter;
import com.leoman.spinningmachine.R;
import com.leoman.spinningmachine.bean.LeaveTypeBean;

import java.util.List;

/**
 * Created by Administrator on 2018-05-28.
 */

public class LeaveTypeAdapter extends BaseRecyclerAdapter<LeaveTypeBean> {
    public LeaveTypeAdapter(int layoutResId, List<LeaveTypeBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void bindTheData(BaseViewHolder holder, LeaveTypeBean bean, int position) {
        ((TextView)holder.findViewById(R.id.tv_type)).setText(bean.getId()+"."+bean.getName());
    }
}
